package com.ssy.lingxi.order.model.vo.basic.request;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.PositiveOrZero;
import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 运费模板商品
 * @author wyx
 * @version 2.0.0
 * @date 2022-03-14
 **/
public class ProductFreeFreightVO implements Serializable {
    private static final long serialVersionUID = -1273289219500444835L;

    /**
     * 会员id(卖家)
     */
    @NotNull(message = "卖家会员id不能为空")
    private Long memberId;

    /**
     * 角色id(卖家)
     */
    @NotNull(message = "卖家角色id不能为空")
    private Long roleId;

    /**
     * 运费模板id
     */
    @NotNull(message = "运费模板id不能为空")
    private Long templateId;

    /**
     * 到手价
     */
    @NotNull(message = "商品到手价要大于等于0")
    @PositiveOrZero(message = "商品到手价要大于等于0")
    private BigDecimal refPrice;

    /**
     * 数量
     */
    @NotNull(message = "数量不能为空")
    @PositiveOrZero(message = "数量要大于等于0")
    private BigDecimal count;

    /**
     * 单件重量(KG)
     */
    @NotNull(message = "单件重量(KG)不能为空")
    @PositiveOrZero(message = "单件重量要大于等于0")
    private BigDecimal weight;

    public Long getMemberId() {
        return memberId;
    }

    public void setMemberId(Long memberId) {
        this.memberId = memberId;
    }

    public Long getRoleId() {
        return roleId;
    }

    public void setRoleId(Long roleId) {
        this.roleId = roleId;
    }

    public Long getTemplateId() {
        return templateId;
    }

    public void setTemplateId(Long templateId) {
        this.templateId = templateId;
    }

    public BigDecimal getRefPrice() {
        return refPrice;
    }

    public void setRefPrice(BigDecimal refPrice) {
        this.refPrice = refPrice;
    }

    public BigDecimal getCount() {
        return count;
    }

    public void setCount(BigDecimal count) {
        this.count = count;
    }

    public BigDecimal getWeight() {
        return weight;
    }

    public void setWeight(BigDecimal weight) {
        this.weight = weight;
    }
}
